
var outDet = confirmEvent('确认出库该条记录？',function(elem) {
	myPost("CoreStockDet/detOut", {id:elem.children[0].innerHTML}, function(response) { setTimeout(queryAll,100)  ;  }); 
}) 
mui('#OA_task_2').on('slideleft', '.mui-table-view-cell', outDet); 
mui('#OA_task_2').on('slideright', '.mui-table-view-cell',outDet);


function showCDS( list){ 
	var content = document.body.querySelector('#OA_task_2');
	content.innerHTML="" 
	var html=document.body.querySelector("#removeTmp").innerHTML 
	for(var i=0;i<list.length;i++){
		var det=list[i] 
		var v = i + 1;
		var info=getData(det,v)
		 
		if(det.status==35){
			info+="出库中" 
		}else{
			continue;
		}	
	
		var data= html.replace("sgj_data",info).replace("sgj_id",det.id)
		
		var li = document.createElement('li');
		li.className = "mui-table-view-cell";
		li.innerHTML = data
		content.appendChild(li)
	}
}

 